(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/resources/script/business/shop/Wares.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, 'c838adyTnlNK51A+5UvBm5h', 'Wares', __filename);
// resources/script/business/shop/Wares.js

"use strict";

var beiMiCommon = require("BeiMiCommon");
cc.Class({
    extends: beiMiCommon,

    properties: {
        title: {
            default: null,
            type: cc.Label
        },
        price: {
            default: null,
            type: cc.Label
        },
        quantity: {
            default: null,
            type: cc.Label
        },
        image: {
            default: null,
            type: cc.Node
        },
        payment: {
            default: null,
            type: cc.Node
        },
        atlas: {
            default: null,
            type: cc.SpriteAtlas
        }
    },
    onLoad: function onLoad() {},
    init: function init(wares) {
        if (wares != null) {
            this.title.string = wares.name;
            this.price.string = wares.price;
            this.quantity.string = wares.quantity;
            this.image.getComponent(cc.Sprite).spriteFrame = this.atlas.getSpriteFrame(wares.imageurl);
        }
    }
});

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=Wares.js.map
        